package puzzle;

public class PieceEdge {

	char colour;
	char body;
	char orientation;
	
	public PieceEdge(){
		
	}
	
	public PieceEdge(char colour, char body, char orientation){
		this.colour = colour;
		this.body = body;
		this.orientation = orientation;
	}

	public char getBody() {
		return body;
	}

	public char getColour() {
		return colour;
	}

	public char getOrientation() {
		return orientation;
	}

	public String toString(){
		String returnString = "";
		
		if(colour == 'r'){
			returnString += "Red, ";
		} else if(colour == 'y'){
			returnString += "Yellow, ";
		} else if(colour == 'b'){
			returnString += "Blue, ";
		} else if(colour == 'g'){
			returnString += "Green, ";
		}
		
		if(body == 'h'){
			returnString += "Head, ";
		} else if(body == 't'){
			returnString += "Tail, ";
		}
		
		if(orientation == 'l'){
			returnString += "Left";
		} else if(orientation == 'r'){
			returnString += "Right";
		}

		return returnString;
	}
	
}
